package com.gateio.flutter.lib_furnace.protocol

import android.app.Activity
import android.content.Context
import android.content.Intent
import android.content.res.Configuration
import android.util.Log
import io.flutter.embedding.engine.FlutterEngine

/**
 * Author: Shper
 * Created: 2023/7/31
 */
interface IGTFlutterHostDelegate {

    fun onCreate(context: Context, isActivity: Boolean)

    fun setupStatusBarAndNavigationBarStyle(context: Context, transparentStatusBar: Boolean)

    fun onConfigurationChanged(context: Context, isActivity: Boolean, newConfig: Configuration)

    fun onActivityResult(context: Context, isActivity: Boolean, requestCode: Int, resultCode: Int, data: Intent?)

    fun configureFlutterEngine(context: Context, isActivity: Boolean, flutterEngine: FlutterEngine)

    fun onStart(activity: Activity)

    fun onRestart(activity: Activity)

    fun onResume(activity: Activity)

    fun onStop(activity: Activity)

    fun finish(activity: Activity)

    fun onDestroy(activity: Activity)

    fun showToast(context: Context, msg: String?)

    fun showToast(context: Context, resId: Int)

    fun showLoadingProgress(context: Context)

    fun dismissLoadingProgress(context: Context)

    fun isNetWorkConnected(context: Context): Boolean

    fun logOut(context: Context)

    fun showPassDialog(context: Context, type: Int, msg: String?)

    fun showSecondPassDialog(context: Context, msg: String?)

    fun showSetFundPassTip(context: Context, msg: String?)

    fun showFingerPrintDialog(context: Context, qrid: String?)

}